﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.Mvc;
using System.Web.Security;
using System.Web.Routing;
using NHibernate;
using SAKS.ViewModels;
using SAKS.Models;
using SAKS.IServices;
using SAKS.ActionFilters;

using Microsoft.Practices.Unity;

namespace SAKS.Controllers
{
    public class ControllerBase : Controller
    {
        protected override void Initialize(RequestContext requestContext)
        {
            base.Initialize(requestContext);
        }

        protected ISession GetCurrentSession(RequestContext requestContext)
        {
            return (ISession)requestContext.HttpContext.Items["current.session"];
        }
    }
}
